package com.zmn.oms.common.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 类描述： 消息可配置规则id
 *
 * @author yule
 * @date 2021/3/31 15:35
 */
@Component
public class MessageConsts extends MessageRuleIdConsts {

    /**
     * 家修匠-无法承接线索 取消规则id
     */
    public static int ZMN_MSG_RULEID_CANCEL_JXJ = 10361;

    @Value("${zmn.message-id.cancel_jxj:10361}")
    public void setZmnMsgRuleIdCancelJxj(int zmnRuleIdCancelJxj) { ZMN_MSG_RULEID_CANCEL_JXJ = zmnRuleIdCancelJxj; }

    // 代用户报价预警通知
    public static int ZMN_MSG_RULEID_QUOTATION_WARN = 10385;

    @Value("${zmn.message-id.quotation_warn:10385}")
    public void setZmnMsgRuleIdQuotationWarn(int zmnRuleIdQuotationWarn) { ZMN_MSG_RULEID_QUOTATION_WARN = zmnRuleIdQuotationWarn; }

    // 撤回通知
    public static int ZMN_MSG_RULEID_BACK = 10384;

    @Value("${zmn.message-id.back:10384}")
    public void setZmnMsgRuleIdBack(int zmnRuleIdBack) { ZMN_MSG_RULEID_BACK = zmnRuleIdBack; }

    // 用户申请取消通知
    public static int ZMN_MSG_CANCEL_APPLY = 10142;

    @Value("${zmn.message-id.cancel_apply:10142}")
    public void setZmnMsgRuleIdCancelApply(int zmnRuleIdCancelApply) { ZMN_MSG_CANCEL_APPLY = zmnRuleIdCancelApply; }

    // 用户申请取消通知(无定金)
    public static int ZMN_MSG_NO_DEPOSIT_CANCEL_APPLY = 10580;

    @Value("${zmn.message-id.no_deposit_cancel_apply:10580}")
    public void setZmnMsgRuleIdNoDepositCancelApply(int zmnRuleIdNoDepositCancelApply) {
        ZMN_MSG_NO_DEPOSIT_CANCEL_APPLY = zmnRuleIdNoDepositCancelApply;
    }

    // 四位短信验证码
    public static int ZMN_MSG_CAPTCHA = 10098;

    @Value("${zmn.message-id.captcha:10098}")
    public void setZmnMsgRuleIdCaptcha(int zmnRuleIdCaptcha) { ZMN_MSG_CAPTCHA = zmnRuleIdCaptcha; }

    // 退款成功-用户消息
    public static int ZMN_MSG_RULEID_SERVICE_REFUND_SUCCESS = 10401;

    @Value("${zmn.message-id.refund_success:10401}")
    public void setZmnMsgRuleidRefundSuccess(int ruleId){
        ZMN_MSG_RULEID_SERVICE_REFUND_SUCCESS = ruleId;
    }

    // 退款成功-工程师push消息
    public static int PUSH_MSG_RULEID_REFUND_SUCCESS = 10477;

    @Value("${app.message-id.refundSuccess:10477}")
    public void setPushMsgRuleidRefundSuccess(int ruleId){
        PUSH_MSG_RULEID_REFUND_SUCCESS = ruleId;
    }

    // 退款成功-钉钉消息
    public static int DINGTALK_MSG_RELEID_REFUND_SUCCESS = 10565;

    @Value("${dingtalk.message-id.refund_success_new:10565}")
    public void setDingtalkMsgRuleidRefundSuccess(int ruleId) {
        DINGTALK_MSG_RELEID_REFUND_SUCCESS = ruleId;
    }


    // 工单取消-工程师push消息
    public static int PUSH_MSG_RULEID_CANCEL_WORK = 10485;

    @Value("${app.message-id.cancelWork:10485}")
    public void setPushMsgRuleidCancelWork(int ruleId){
        PUSH_MSG_RULEID_CANCEL_WORK = ruleId;
    }

    // 配件保留提醒
    public static int APP_MSG_PART_RETAIN_REMIND = 10497;
    @Value("${app.message-id.part_retain:10497}")
    public void setAppMsgRuleidPartRetainRemind(int ruleId) {
        APP_MSG_PART_RETAIN_REMIND = ruleId;
    }

    //测试场景ID：10525    线上场景ID：10446
    // 好友代付消息
    public static int APP_MSG_AGENT_PAY = 10525;
    @Value("${app.message-id.agent_pay:10525}")
    public void setAppMsgRuleidAgentPay(int ruleId) {
        APP_MSG_AGENT_PAY = ruleId;
    }

    // 催单-工程师push消息
    public static int PUSH_MSG_RULEID_REMINDER = 10133;

    @Value("${app.message-id.reminder:10133}")
    public void setPushMsgRuleidReminder(int ruleId){
        PUSH_MSG_RULEID_REMINDER = ruleId;
    }

    // 定金验收结果app push消息 测试：10569，生产：10500
    public static int APP_PUSH_MSG_RULE_ID_ACCEPTANCE_DEPOSIT = 10569;

    @Value("${app.message-id.acceptance_deposit:10569}")
    public void setAppPushMsgRuleIdAcceptanceDeposit(int appPushMsgRuleIdAcceptanceDeposit) {
        APP_PUSH_MSG_RULE_ID_ACCEPTANCE_DEPOSIT = appPushMsgRuleIdAcceptanceDeposit;
    }

    // 定金验收结果app push消息 测试：10568，生产：10499
    public static int APP_PUSH_MSG_RULE_ID_ACCEPTANCE_PAYMENT = 10568;

    @Value("${app.message-id.acceptance_payment:10568}")
    public void setAppPushMsgRuleIdAcceptancePayment(int appPushMsgRuleIdAcceptancePayment) {
        APP_PUSH_MSG_RULE_ID_ACCEPTANCE_PAYMENT = appPushMsgRuleIdAcceptancePayment;
    }

    // 后台新增多次上门app push消息 测试：10576，生产：10521
    public static int APP_PUSH_MSG_RULE_ID_MULTIPLE_VISIT = 10576;

    @Value("${app.message-id.multiple_visit:10576}")
    public void setAppPushMsgRuleIdMultipleVisit(int appPushMsgRuleIdMultipleVisit) {
        APP_PUSH_MSG_RULE_ID_MULTIPLE_VISIT = appPushMsgRuleIdMultipleVisit;
    }

    // 再次上门提醒app push消息 测试：10581，生产：10527
    public static int APP_PUSH_MSG_RULE_ID_AGAIN_VISIT_REMIND = 10581;

    @Value("${app.message-id.again_visit_remind:10581}")
    public void setAppPushMsgRuleIdAgainVisitRemind(int appPushMsgRuleIdAgainVisitRemind) {
        APP_PUSH_MSG_RULE_ID_AGAIN_VISIT_REMIND = appPushMsgRuleIdAgainVisitRemind;
    }

    // 代用户验收预警通知app push消息 测试：10582，生产：10528
    public static int APP_PUSH_MSG_RULE_ID_ACCEPTANCE_WARN = 10582;

    @Value("${app.message-id.acceptance_warn:10582}")
    public void setAppPushMsgRuleIdPaymentAcceptanceWarn(int appPushMsgRuleIdAcceptanceWarn) {
        APP_PUSH_MSG_RULE_ID_ACCEPTANCE_WARN = appPushMsgRuleIdAcceptanceWarn;
    }

    // 代用户确认定金预警通知app push消息 测试：10583，生产：10529
    public static int APP_PUSH_MSG_RULE_ID_DEPOSIT_CONFIRM_WARN = 10583;

    @Value("${app.message-id.deposit_confirm_warn:10583}")
    public void setAppPushMsgRuleIdDepositConfirmWarn(int appPushMsgRuleIdDepositConfirmWarn) {
        APP_PUSH_MSG_RULE_ID_DEPOSIT_CONFIRM_WARN = appPushMsgRuleIdDepositConfirmWarn;
    }

    // 后台改价提示工程师重新确认 app push消息 测试：10614，生产：10554
    public static int APP_PUSH_MSG_RULE_ID_ENGINEER_AGAIN_CONFIRM = 10614;

    @Value("${app.message-id.engineer_again_confirm:10614}")
    public void setAppPushMsgRuleIdEngineerAgainConfirm(int appPushMsgRuleIdEngineerAgainConfirm) {
        APP_PUSH_MSG_RULE_ID_ENGINEER_AGAIN_CONFIRM = appPushMsgRuleIdEngineerAgainConfirm;
    }

    // 定金验收微信模板消息 测试：10571，生产：
    public static int ZMN_WECHAT_MSG_RULEID_ORDER_ACCEPTANCE_DEPOSIT = 10571;

    @Value("${zmn.message-id.acceptance_deposit:10571}")
    public void setZmnWechatMsgRuleidOrderAcceptanceDeposit(int zmnWechatMsgRuleidOrderAcceptanceDeposit) {
        ZMN_WECHAT_MSG_RULEID_ORDER_ACCEPTANCE_DEPOSIT = zmnWechatMsgRuleidOrderAcceptanceDeposit;
    }

    // 尾款验收微信模板消息 测试：10570，生产：
    public static int ZMN_WECHAT_MSG_RULEID_ORDER_ACCEPTANCE_PAYMENT = 10570;

    @Value("${zmn.message-id.acceptance_payment:10570}")
    public void setZmnWechatMsgRuleidOrderAcceptancePayment(int zmnWechatMsgRuleidOrderAcceptancePayment) {
        ZMN_WECHAT_MSG_RULEID_ORDER_ACCEPTANCE_PAYMENT = zmnWechatMsgRuleidOrderAcceptancePayment;
    }

    // 计价器3.0尾款验收模板消息
    public static int ZMN_WECHAT_MSG_RULE_ID_QUOTATION_THREE_PAYMENT = 10621;

    @Value("${zmn.message-id.quotation_three_payment:10621}")
    public void setZmnWechatMsgRuleIdQuotationThreePayment(int zmnWechatMsgRuleIdQuotationThreePayment) {
        ZMN_WECHAT_MSG_RULE_ID_QUOTATION_THREE_PAYMENT = zmnWechatMsgRuleIdQuotationThreePayment;
    }

    // 易聊接入订单超区，给用户发送手机短信
    public static int PUSH_MSG_RULEID_ELIAO_OUT_SERVICE = 10361;

    @Value("${app.message-id.eliao.out_service:10361}")
    public void setPushMsgRuleidEliaoOutService(int ruleId){
        PUSH_MSG_RULEID_ELIAO_OUT_SERVICE = ruleId;
    }
    //派单超时确认模板
    public static int ZMN_MSG_RULEID_DISTRIBUTE_TIMEOUT_CONFIRM = 10574;

    @Value("${zmn.message-id.distribute.timeout_confirm:10574}")
    public void setZmnMsgRuleIdDistributeTimeoutConfirm(int ruleId) {
        ZMN_MSG_RULEID_DISTRIBUTE_TIMEOUT_CONFIRM = ruleId;
    }

    // 重复支付通知用户短信模板 测试：10613 生产：10553
    public static int ZMN_MSG_RULEID_PAY_DUPLICATE = 10613;

    @Value("${zmn.message-id.pay_duplicate:10613}")
    public void setMsgRuleIdPayDuplicate(int ruleId) {
        ZMN_MSG_RULEID_PAY_DUPLICATE = ruleId;
    }

    // 工程师上门-用户故障上报 测试：10619 生产：暂无
    public static int ZMN_MSG_RULEID_USER_FAULT_REPORT = 10619;
    @Value("${zmn.message-id.user_fault_report:10619}")
    public void setMsgRuleIdUserFaultReport(int ruleId) {
        ZMN_MSG_RULEID_USER_FAULT_REPORT = ruleId;
    }

    // 计价-检修完成-确认检修报告：10620 生产：暂无
    public static int ZMN_MSG_RULEID_CONFIRM_CHECK_REPORT = 10620;
    @Value("${zmn.message-id.confirm_check_report:10620}")
    public void setZmnMsgRuleidConfirmCheckReport(int ruleId) {
        ZMN_MSG_RULEID_CONFIRM_CHECK_REPORT = ruleId;
    }

    // 计价-检修完成-短信同意维修：10622 生产：暂无
    public static int ZMN_MSG_RULEID_AGREE_REPAIR = 10622;
    @Value("${zmn.message-id.agree_repair:10622}")
    public void setZmnMsgRuleidAgreeRepair(int ruleId) {
        ZMN_MSG_RULEID_AGREE_REPAIR = ruleId;
    }

    // 服务完成-验收提醒：10621 生产：暂无
    public static int ZMN_MSG_RULEID_ACCEPTANCE_REMINDER = 10621;
    @Value("${zmn.message-id.acceptance_reminder:10621}")
    public void setZmnMsgRuleidAcceptanceReminder(int ruleId) {
        ZMN_MSG_RULEID_ACCEPTANCE_REMINDER = ruleId;
    }

    // 计价-用户议价-短信推送活动：10623 生产：暂无
    public static int ZMN_MSG_RULEID_PUST_DISCOUNT = 10623;
    @Value("${zmn.message-id.push_discount:10623}")
    public void setZmnMsgRuleidPustDiscount(int ruleId) {
        ZMN_MSG_RULEID_PUST_DISCOUNT = ruleId;
    }

    // 改约
    public static int ZMN_MSG_RULEID_UPDATE_DUTYTIME = 10649;
    @Value("${zmn.message-id.update_dutytime:10649}")
    public void setZmnMsgRuleidUpdateDutytime(int ruleId){
        ZMN_MSG_RULEID_UPDATE_DUTYTIME = ruleId;
    }

    // 改派后工程师接单
    public static int ZMN_MSG_RULEID_RETAKE = 10646;
    @Value("${zmn.message-id.retake:10646}")
    public void setZmnMsgRuleidRetake(int ruleId){
        ZMN_MSG_RULEID_RETAKE = ruleId;
    }

    // 言而有信改派后工程师领单
    public static int YEYX_MSG_RULEID_RETAKE = 10647;
    @Value("${yeyx.message-id.retake:10647}")
    public void setYeyxMsgRuleidRetake(int ruleId){
        YEYX_MSG_RULEID_RETAKE = ruleId;
    }

    // 川南环保改派后工程师领单
    public static int CNHB_MSG_RULEID_RETAKE = 10648;
    @Value("${cnhb.message-id.retake:10648}")
    public void setCnhbMsgRuleidRetake(int ruleId){
        CNHB_MSG_RULEID_RETAKE = ruleId;
    }

    // 迟到安抚（上门迟到）
    public static int ZMN_MSG_RULEID_VISIT_TIME_OUT = 10093;
    @Value("${zmn.message-id.visit_time_out:10093}")
    public void setZmnMsgRuleidVisitTimeOut(int ruleId){
        ZMN_MSG_RULEID_VISIT_TIME_OUT = ruleId;
    }

    // 返修单电话解决短信模板 测试：10639 生产：10571
    public static int ZMN_MSG_RULEID_TELEPHONE_SOLUTION = 10639;

    @Value("${zmn.message-id.tel_solution:10639}")
    public void setZmnMsgRuleIdTelephoneSolution(int ruleId) {
        ZMN_MSG_RULEID_TELEPHONE_SOLUTION = ruleId;
    }

    // 再次联系提醒（无法返修订单） 测试：10654 生产：10586
    public static int ZMN_MSG_RULEID_CONTACT_REMINDER_AGAIN = 10654;

    @Value("${zmn.message-id.contact_reminder_again:10654}")
    public void setZmnMsgRuleIdContactReminderAgain(int ruleId) {
        ZMN_MSG_RULEID_CONTACT_REMINDER_AGAIN = ruleId;
    }

    // 用户同意维修（无法返修订单） 测试：10654 生产：10586
    public static int PUSH_MSG_RULEID_USER_AGREE_REPAIR = 10616;

    @Value("${zmn.message-id.user_agree_repair:10616}")
    public void setPushMsgRuleidUserAgreeRepair(int ruleId) {
        PUSH_MSG_RULEID_USER_AGREE_REPAIR = ruleId;
    }

    // 返修单退款 测试：10673 生产：
    public static int PUSH_MSG_RULE_ID_REWORK_REFUND = 10673;

    @Value("${zmn.message-id.rework_refund:10673}")
    public void setPushMsgRuleIdReworkRefund(int pushMsgRuleIdReworkRefund) {
        PUSH_MSG_RULE_ID_REWORK_REFUND = pushMsgRuleIdReworkRefund;
    }

    // 下单成功后的活动提醒 测试：10798 线上 10803
    public static int ZMN_MSG_RULEID_ACTIVITY_REMINDER = 10798; //

    @Value("${zmn.message-id.activity_reminder:10803}")
    public void setPushMsgRuleIdActivityReminder(int pushMsgRuleIdActivityReminder) {
        ZMN_MSG_RULEID_ACTIVITY_REMINDER = pushMsgRuleIdActivityReminder;
    }

    // 派单补偿消息 测试：10703 线上 10666
    public static int PUSH_MSG_RULEID_DISTRIBUTE_COMPENSATE = 10703;

    @Value("${zmn.message-id.distribute_compensate:10703}")
    public void setPushMsgRuleIdDistributeCompensate(int pushMsgRuleIdDistributeCompensate) {
        PUSH_MSG_RULEID_DISTRIBUTE_COMPENSATE = pushMsgRuleIdDistributeCompensate;
    }

    // 照片附件自动审核结果消息 测试：10747 生产：
    public static int PUSH_MSG_RULEID_ATTACHMENT_AUDIT_RESULT = 10747;

    @Value("${zmn.message-id.attachment_audit_result:10747}")
    public void setPushMsgRuleIdPictureAttachmentAuditResult(int pushMsgRuleIdAttachmentAuditResult) {
        PUSH_MSG_RULEID_ATTACHMENT_AUDIT_RESULT = pushMsgRuleIdAttachmentAuditResult;
    }

    // 调查问卷 测试：10744 线上 10728
    public static int ZMN_MSG_RULEID_QUESTIONNAIRE = 10744;

    @Value("${zmn.message-id.questionnaire:10744}")
    public void setPushMsgRuleidQuestionnaire(int ruleId){
        ZMN_MSG_RULEID_QUESTIONNAIRE = ruleId;
    }

    // 订单对调预约时间 测试：10760  线上 10734
    public static int ZMN_MSG_RULEID_ORDER_DUTYTIME_EXCHANGE = 10760;
    @Value("${zmn.message-id.order_dutytime_exchange:10760}")
    public void setZmnMsgRuleidOrderDutytimeExchange(int ruleId){
        ZMN_MSG_RULEID_ORDER_DUTYTIME_EXCHANGE = ruleId;
    }

    /**
     * 墙面订单消息 测试：10797 线上:10809
     */
    public static int WALL_MSG_RULE_ID_QUOTATION = 10797;

    @Value("${zmn.message-id.wall_quotation:10797}")
    public void setWallMsgRuleIdQuotation(int wallMsgRuleIdQuotation) {
        WALL_MSG_RULE_ID_QUOTATION = wallMsgRuleIdQuotation;
    }

    // 转单求助 测试：10786 线上
    public static int ZMN_MSG_RULEID_HELP_ORDER = 10786;
    @Value("${zmn.message-id.help_order:10786}")
    public void setPushMsgRuleIdHelpType(int ruleId){
        ZMN_MSG_RULEID_HELP_ORDER = ruleId;
    }

    public static String ZMN_MSG_RULE_CODE_HELP_ORDER = "zdqz";
    @Value("${zmn.message-code.help_order:zdqz}")
    public void setPushMsgRuleCodeHelpType(String ruleCode){
        ZMN_MSG_RULE_CODE_HELP_ORDER = ruleCode;
    }

    // 改派成功结果通知 测试：10785 线上
    public static int ZMN_MSG_RULEID_REDISTRIBUTE_RESULT = 10785;
    @Value("${zmn.message-id.redistribute_result:10785}")
    public void setPushMsgRuleIdRedistributeResult(int ruleId){
        ZMN_MSG_RULEID_REDISTRIBUTE_RESULT = ruleId;
    }
    public static String ZMN_MSG_RULE_CODE_REDISTRIBUTE_RESULT = "gpcgtz";
    @Value("${zmn.message-code.redistribute_result:gpcgtz}")
    public void setPushMsgRuleCodeRedistributeResult(String ruleCode){
        ZMN_MSG_RULE_CODE_REDISTRIBUTE_RESULT = ruleCode;
    }

    // 改派失败结果通知 测试：10801 线上
    public static int ZMN_MSG_RULEID_REDISTRIBUTE_RESULT_FAIL = 10801;
    @Value("${zmn.message-id.redistribute_result_fail:10801}")
    public void setPushMsgRuleIdRedistributeResultFail(int ruleId){
        ZMN_MSG_RULEID_REDISTRIBUTE_RESULT_FAIL = ruleId;
    }
    public static String ZMN_MSG_RULE_CODE_REDISTRIBUTE_RESULT_FAIL = "gpsbtz";
    @Value("${zmn.message-code.redistribute_result_fail:gpsbtz}")
    public void setPushMsgRuleCodeRedistributeResultFail(String ruleCode){
        ZMN_MSG_RULE_CODE_REDISTRIBUTE_RESULT_FAIL = ruleCode;
    }

    // 改派审核-钉钉消息 测试：10790 线上：
    public static int DINGTALK_MSG_RELEID_REDISTRIBUTE_AUDIT = 10790;
    @Value("${dingtalk.message-id.redistribute_audit:10790}")
    public void setDingtalkMsgRuleIdRedistributeAudit(int ruleId) {
        DINGTALK_MSG_RELEID_REDISTRIBUTE_AUDIT = ruleId;
    }
    public static String ZMN_MSG_RULE_CODE_REDISTRIBUTE_AUDIT = "gpsh";
    @Value("${zmn.message-code.redistribute_audit:gpsh}")
    public void setPushMsgRuleIdHelpTypeCode(String ruleCode){
        ZMN_MSG_RULE_CODE_REDISTRIBUTE_AUDIT = ruleCode;
    }


    // 话务转单失败-后台录单 - 话务挽留短信 测试：10858 生产：10899
    public static int ZMN_MSG_RULEID_ORDER_TRANSFER_FAIL = 10858;
    @Value("${zmn.message-id.order_transfer_fail:10858}")
    public void setZmnMsgRuleidOrderTransferFail(int ruleId) {
        ZMN_MSG_RULEID_ORDER_TRANSFER_FAIL = ruleId;
    }

    // 确认报价失败-后台录单 - 修改订单 - 话务确认报价失败 测试：10859 生产：10900
    public static int ZMN_MSG_RULEID_ORDER_CONFIRM_QUOTED_FAIL = 10859;
    @Value("${zmn.message-id.order_confirm_quoted_fail:10859}")
    public void setZmnMsgRuleidOrderConfirmQuotedFail(int ruleId) {
        ZMN_MSG_RULEID_ORDER_CONFIRM_QUOTED_FAIL = ruleId;
    }

    // 江西南昌 下单报价 已确认服务价格 测试：10861 生产：10907
    public static int ZMN_MSG_RULEID_CUSTOMER_CONFIRM_QUOTED = 10861;
    @Value("${zmn.message-id.customer_confirm_quoted:10861}")
    public void setZmnMsgRuleidCustomerConfirmQuoted(int ruleId) {
        ZMN_MSG_RULEID_CUSTOMER_CONFIRM_QUOTED = ruleId;
    }

}
